package com.neuedu.weishi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;
/**
* Author lu
* Date  2025-08-26 09:11:00
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Alias("member")
@TableName(value = "member")
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    *主键自增长
    */
    @TableField(value = "member_id")
    @TableId(type = IdType.AUTO)
    private Integer memberId;

    /**
    * 唯一 非空
    */
    @TableField(value = "email")
    private String email;
    /**
    * 非空
    */
    @TableField(value = "password")
    private String password;
    /**
    * 昵称
    */
    @TableField(value = "nickname")
    private String nickname;
    /**
    * 会员头像图片URL
    */
    @TableField(value = "avatar_url")
    private String avatarUrl;
    /**
    * 注册时间
    */
    @TableField(value = "register_time")
    private Date registerTime;
    /**
    * 性别
    */
    @TableField(value = "gender")
    private Integer gender;
    /**
    * 出生日期
    */
    @TableField(value = "birth_date")
    private Date birthDate;
    /**
    * 手机号码
    */
    @TableField(value = "phone_number")
    private String phoneNumber;
    /**
    * 所在城市
    */
    @TableField(value = "city")
    private String city;
    /**
    * 1:使用中;2:已禁封;3:已注销
    */
    @TableField(value = "member_status")
    private Integer memberStatus;
}